
for (i in 0..10) { print i }

println ""

j = 0
while (j < 10) { print j+1; j++}

println ""

10.times { print it }

println ""

(0..10).each { print it }

println ""

1.upto 10, { print it}

println ""

10.downto 1, { print it}

println ""

1.step 11, 1, { print it }

println ""

10.step 0, -1, {print it }

println ""

var1 =  (1..10).join(',')
println var1

var2 =  (1..10).step(2).join(',')
println var2

(1..10).reverse().each { print it }

println ""

[1,2,3,4,5].reverse().each { print it }

println ""

("A".."Z").each { print it }

println ""

("A".."z").each { print it }

println ""

("a".."Z").each { print it }

println ""

("あ".."を").each { print it }

println ""

("ア".."ヲ").each { print it }

println ""

("あ".."ヲ").each { print it }


